package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.dto.system.SysRoleDto;
import com.atguigu.spzx.model.entity.system.SysRole;
import com.github.pagehelper.PageInfo;

import java.util.Map;

/**
 * @Author: Mouoal
 * @CreateTime: 2024-11-22  14:55
 * @Version: 1.0
 */
public interface SysRoleService {
    public abstract PageInfo<SysRole> findByPage(SysRoleDto sysRoleDto, Integer pageNum, Integer pageSize);

    //2 角色添加的方法
    void saveSysRole(SysRole sysRole);

    //修改
    void updateSysRole(SysRole sysRole);

    //删除
    void deleteById(Long roleId);


    Map<String, Object> findAllRoles(Long userId);
}